<html>
<head>
 <meta charset="UTF-8">
  <link rel="stylesheet" href="assets/css/amazeui.min.css"/>
</head>

<script>
function check(){
	if(form1.name.value==""){
		alert("请输入用户名！");
		form1.user.focus;
		return false;
	}
	if(form1.password.value==""){
		alert("请输入密码！");
		form1.pass.focus;
		return false;
	}
		return true;
}
</script>
<body>
<div class="header">
<div class="am-g">
  <div class="am-u-lg-6 am-u-md-8 am-u-sm-centered">
   <center><h1>欢迎来到投票管理登录页面</h1> </center>
   <hr>
   <br>
   <br>
   <h3>登录</h3>
    <hr>

    <br>
    <br>

    <form name="form1" method="post" class="am-form" action="login_ok.php">
      <label for="text">用户名:</label>
      <input type="text" name="name" id="name" value="" placeholder="Username">
      <br>
      <label for="password">密码:</label>
      <input type="password" name="password" id="password" value="" placeholder="Password">
      <br>
      <label for="remember-me">
        <input id="remember-me" type="checkbox">
        记住密码
      </label>
      <br />
      <div class="am-cf">
        <input type="submit" name="login" value="登 录" class="am-btn am-btn-primary am-btn-sm am-fl" onClick="return check()">
        <input type="submit" name="" value="忘记密码 ^_^? " class="am-btn am-btn-default am-btn-sm am-fr">
      </div>
    </form>
	</div>
</body>
</html>